#include "stdafx.h"
#include "CWordLearn.h"
#pragma once
#define WIN32_LEAN_AND_MEAN	
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
#include <objbase.h>
#include "UIlib.h"
using namespace DuiLib;
class CWordExamResult : public CWindowWnd, public INotifyUI
{
public:
	CWordExamResult(CString &strGramAnswerResult)
	{	
		m_strWordExamAnswerResult = strGramAnswerResult;
		//m_strGramAnswerResult 
		m_Obj = NULL;
	};
	VOID SetXuYuFaPointer( CWordLearn *pObj)
	{
		m_Obj = pObj;
	}
	CWordExamResult()
	{

	};
	LPCTSTR GetWindowClassName() const 
	{ 
		return _T("UIMainFrame"); 
	};
	UINT GetClassStyle() const 
	{ 
		return UI_CLASSSTYLE_FRAME | CS_DBLCLKS; 
	};
	void OnFinalMessage(HWND /*hWnd*/) 
	{ 
		/*delete this;*/
	};
	void Init() { }
	void OnPrepare(TNotifyUI& msg) ;

	void HideAddNewWordButton(bool bVisible = false);
	void HideNewWordButtonByIndex(int nIndx);

	void Notify(TNotifyUI& msg);

	void ReturnToExamPaperPage();

	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);

	void WordExamResultQuestionDetail();
	void WordExamResultAddWrongWord();
	void SetConf(LPCTSTR strParam, LPCTSTR strParamValue);
	
	
public:
	CPaintManagerUI m_PaintManager;
	 CString m_strWordExamAnswerResult;
	 SplitResultVector m_strWordExamResultAll;
	 CTime   m_tmWordLogFrom;
	 CWordLearn *m_Obj;
};